package com.migo.service.impl;

import com.migo.dao.FirmwareDevDao;
import com.migo.entity.FirmwareDevEntity;
import com.migo.service.FirmwareDevService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("firmwareDevService")
public class FirmwareDevServiceImpl implements FirmwareDevService {
	@Autowired
	private FirmwareDevDao firmwareDevDao;
	
	@Override
	public FirmwareDevEntity queryObject(Integer id){
		return firmwareDevDao.queryObject(id);
	}
	
	@Override
	public List<FirmwareDevEntity> queryList(Map<String, Object> map){
		return firmwareDevDao.queryList(map);
	}

	@Override
	public List<FirmwareDevEntity> queryModelList(Map<String, String> map) {
		return firmwareDevDao.queryModelList(map);
	}

	@Override
	public List<Map<String, Object>> queryFirmwareMap(Map<String, String> map) {
		return firmwareDevDao.queryFirmwareMap(map);
	}

	@Override
	public List<FirmwareDevEntity> queryFirmwareObjects(Map<String, String> map) {
		return firmwareDevDao.queryFirmwareObjects(map);
	}

	@Override
	public List<Map<String, Object>> queryNextVersionList(Map<String, String> map) {
		return firmwareDevDao.queryNextVersionList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map){
		return firmwareDevDao.queryTotal(map);
	}
	
	@Override
	public void save(FirmwareDevEntity firmwareDev){
		firmwareDevDao.save(firmwareDev);
	}
	
	@Override
	public void update(FirmwareDevEntity firmwareDev){
		firmwareDevDao.update(firmwareDev);
	}
	
	@Override
	public void delete(Integer id){
		firmwareDevDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		firmwareDevDao.deleteBatch(ids);
	}
	
}
